// import { eMenuType } from '@/interface/enum';
import { RouteRecordRaw } from 'vue-router';

// import { eLocalStorageConfig } from '@/interface/elocal_storage';
// import { controller_routes } from './controller_status';
import { large_screen_routes } from './large_screen_monitoring';

import { devices } from './devices';
import { data_report } from './data_report';
import { alarm_center_router } from './alarm_center';
// import { sys_routes } from './sys';
export const AsyncRoute: Array<RouteRecordRaw> = [
  large_screen_routes,
  devices,
  alarm_center_router,
  data_report,
  // controller_routes
];
// export const AsyncRoute: Array<RouteRecordRaw> = [controller_routes];
export const allRoutes = [...AsyncRoute];
export const main_router: RouteRecordRaw = {
  path: '/',
  // redirect: large_screen_routes.path,
  redirect: "/welcome",
  // redirect: "/controller_status",
  name: '',
  component: () => import('@/layout/MainLayout.vue'),
  meta: { menu_show: false },
  // TODO 路由权限
  //   children: sessionStorage.getItem(eLocalStorageConfig.LOG_LEVEL) === 'admin' ? AsyncRoute : [],
  // children: AsyncRoute,
  children: allRoutes,
};
